package com.team.auth.domain;

import java.util.Date;

/**
 * 店铺证件信息表
 * @TableName biz_shop_certificates
 */
public class BizShopCertificates {
    /**
     * 主键ID
     */
    private Long id;

    /**
     * 负责人姓名
     */
    private String director;

    /**
     * 身份证号码
     */
    private String idCard;

    /**
     * 手机号
     */
    private String mobile;

    /**
     * 营业执照号码
     */
    private String businessLicenseId;

    /**
     * 营业执照图片
     */
    private String businessLicenseImg;

    /**
     * 身份证正面图片
     */
    private String front;

    /**
     * 身份证反面图片
     */
    private String opposite;

    /**
     * 创建时间
     */
    private Date createdAt;

    /**
     * 更新时间
     */
    private Date updatedAt;

    /**
     * 主键ID
     */
    public Long getId() {
        return id;
    }

    /**
     * 主键ID
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 负责人姓名
     */
    public String getDirector() {
        return director;
    }

    /**
     * 负责人姓名
     */
    public void setDirector(String director) {
        this.director = director;
    }

    /**
     * 身份证号码
     */
    public String getIdCard() {
        return idCard;
    }

    /**
     * 身份证号码
     */
    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    /**
     * 手机号
     */
    public String getMobile() {
        return mobile;
    }

    /**
     * 手机号
     */
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    /**
     * 营业执照号码
     */
    public String getBusinessLicenseId() {
        return businessLicenseId;
    }

    /**
     * 营业执照号码
     */
    public void setBusinessLicenseId(String businessLicenseId) {
        this.businessLicenseId = businessLicenseId;
    }

    /**
     * 营业执照图片
     */
    public String getBusinessLicenseImg() {
        return businessLicenseImg;
    }

    /**
     * 营业执照图片
     */
    public void setBusinessLicenseImg(String businessLicenseImg) {
        this.businessLicenseImg = businessLicenseImg;
    }

    /**
     * 身份证正面图片
     */
    public String getFront() {
        return front;
    }

    /**
     * 身份证正面图片
     */
    public void setFront(String front) {
        this.front = front;
    }

    /**
     * 身份证反面图片
     */
    public String getOpposite() {
        return opposite;
    }

    /**
     * 身份证反面图片
     */
    public void setOpposite(String opposite) {
        this.opposite = opposite;
    }

    /**
     * 创建时间
     */
    public Date getCreatedAt() {
        return createdAt;
    }

    /**
     * 创建时间
     */
    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    /**
     * 更新时间
     */
    public Date getUpdatedAt() {
        return updatedAt;
    }

    /**
     * 更新时间
     */
    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BizShopCertificates other = (BizShopCertificates) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDirector() == null ? other.getDirector() == null : this.getDirector().equals(other.getDirector()))
            && (this.getIdCard() == null ? other.getIdCard() == null : this.getIdCard().equals(other.getIdCard()))
            && (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))
            && (this.getBusinessLicenseId() == null ? other.getBusinessLicenseId() == null : this.getBusinessLicenseId().equals(other.getBusinessLicenseId()))
            && (this.getBusinessLicenseImg() == null ? other.getBusinessLicenseImg() == null : this.getBusinessLicenseImg().equals(other.getBusinessLicenseImg()))
            && (this.getFront() == null ? other.getFront() == null : this.getFront().equals(other.getFront()))
            && (this.getOpposite() == null ? other.getOpposite() == null : this.getOpposite().equals(other.getOpposite()))
            && (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()))
            && (this.getUpdatedAt() == null ? other.getUpdatedAt() == null : this.getUpdatedAt().equals(other.getUpdatedAt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDirector() == null) ? 0 : getDirector().hashCode());
        result = prime * result + ((getIdCard() == null) ? 0 : getIdCard().hashCode());
        result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode());
        result = prime * result + ((getBusinessLicenseId() == null) ? 0 : getBusinessLicenseId().hashCode());
        result = prime * result + ((getBusinessLicenseImg() == null) ? 0 : getBusinessLicenseImg().hashCode());
        result = prime * result + ((getFront() == null) ? 0 : getFront().hashCode());
        result = prime * result + ((getOpposite() == null) ? 0 : getOpposite().hashCode());
        result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
        result = prime * result + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", director=").append(director);
        sb.append(", idCard=").append(idCard);
        sb.append(", mobile=").append(mobile);
        sb.append(", businessLicenseId=").append(businessLicenseId);
        sb.append(", businessLicenseImg=").append(businessLicenseImg);
        sb.append(", front=").append(front);
        sb.append(", opposite=").append(opposite);
        sb.append(", createdAt=").append(createdAt);
        sb.append(", updatedAt=").append(updatedAt);
        sb.append("]");
        return sb.toString();
    }
}